package com.ns.school.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ns.school.po.sys.Menu;
import com.ns.school.po.sys.Role;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

public interface RoleMapper extends BaseMapper<Role> {

    void saveRoleMenus(@Param("roleId") Integer roleId, @Param("menus") Set<Menu> menuSet);

    Role selectRoleById(@Param("roleId") Integer roleId);

    void dropRoleMenus(@Param("roleId") Integer roleId);

    void dropRoleUsers(@Param("roleId") Integer roleId);
}